package izzat.fit.fit_mine.entity;

import java.util.List;

/**
 * @ClassName: HistoricalStatistics
 * @Description: 统计历史训练数据
 * @Author: Izzat
 * @Date: 2020-03-17 10:16
 * @Version: v1.0
 */
public class HistoricalStatistics {
    private int cumulativeMinutes;
    private int cumulativeTimes;
    private int cumulativeDays;
    private List<Record> list;

    public int getCumulativeMinutes() {
        return cumulativeMinutes;
    }

    public void setCumulativeMinutes(int cumulativeMinutes) {
        this.cumulativeMinutes = cumulativeMinutes;
    }

    public HistoricalStatistics CumulativeMinutes(int cumulativeMinutes) {
        this.cumulativeMinutes = cumulativeMinutes;
        return this;
    }
    public HistoricalStatistics cumulativeTimes(int cumulativeTimes) {
        this.cumulativeTimes = cumulativeTimes;
        return this;
    }
    public HistoricalStatistics cumulativeDays(int cumulativeDays) {
        this.cumulativeDays = cumulativeDays;
        return this;
    }
    public HistoricalStatistics list(List<Record> list) {
        this.list = list;
        return this;
    }


    public int getCumulativeTimes() {
        return cumulativeTimes;
    }

    public void setCumulativeTimes(int cumulativeTimes) {
        this.cumulativeTimes = cumulativeTimes;
    }

    public int getCumulativeDays() {
        return cumulativeDays;
    }

    public void setCumulativeDays(int cumulativeDays) {
        this.cumulativeDays = cumulativeDays;
    }

    public List<Record> getList() {
        return list;
    }

    public void setList(List<Record> list) {
        this.list = list;
    }

    public boolean Null(){
        return (cumulativeTimes!=0 && cumulativeDays!=0 && cumulativeMinutes!=0 && list.size()!=0);
    }
}
